import { call, put } from 'redux-saga/effects'
import axios from 'axios'

// 添加
// put  put === dispatch
// call  saga中封装的请求
function * add() {
    let count = yield call(axios.get, "/api/count")
    count = count.data
    yield put({ type: "ADD", count })
}

export default add